var CardListView = {    
    chatCardTmp : [
        '<div class="cardWrapper" card-id="<%=o.id%>"  lastDoTime="<%=o.lastDoTime%>">',
            '<div class="cardCtn">',
                '<div class="cardIcon">',
                    '<img class="cardIconImg" src="<%=o.icon %>" onerror= <%= o.type === "singlechat" ? ( "this.src=" + ujs.getConfigRes("defUserIcon") ) : ("this.src=" + ujs.getConfigRes("defGroupIcon")) %> />',
                '</div>',
                '<div loc="<%=o.perm ? o.perm.rloc : 0 %>" ttype="<%=o.truetype%>" class="cardName breakWord ellipsis prefixRowIcon <%=o.type%>" title="<%=name.safeString()%>" ><%=name.safeString()%></div>',
                '<div class="cardLastMsg ellipsis"><%=o.lastMsg%></div>',
            '</div>',
            // '<% if(o.type != "singlechat") {%>',
                // '<div class="cardToolbar">',                    
                    // '<button class="cardToolbarItem edit" style="<%=o.perm && !o.perm.upd ? "display:none" : "" %>" >',
                        // '<img title="Edit" src="/ujs/images/common16/edit.png" />',
                    // '</button>',
                // '</div>',
            // '<% } %>',            
            '<span title="delete chat" class="closeBtn cardCloseBtn" style="<%=o.perm && !o.perm.del ? "display:none" : "" %>" ></span>',
        '</div>'
    ].join(''),
    
    urlCardTmp : [
        '<div class="cardWrapper" card-id="<%=o.id%>" lastDoTime="<%=o.lastDoTime%>">',
            '<div class="cardCtn">',
                '<div class="cardIcon">',
                    '<a href="<%=o.url%>" target="_blank">',
                        '<img class="cardIconImg" src="<%=o.icon%>" xsrc="<%=o.icon%>" onerror=this.src="{0}" />'.format(ujs.getConfigRes('emptyImagePath')),
                    '</a>',                    
                '</div>',
                '<div class="cardName breakWord ellipsis" style="text-align: center;margin-top: 6px;" title="<%=name.safeString()%>" ><%=name.safeString()%></div>',
            '</div>',
            // '<div class="cardToolbar">',
                // '<button class="cardToolbarItem edit" style="<%=o.perm && !o.perm.upd ? "display:none" : "" %>" >',
                    // '<img title="Edit" src="/ujs/images/common16/edit.png" />',
                // '</button>',                
            // '</div>',
            '<span title="delete link" class="closeBtn cardCloseBtn" style="<%=o.perm && !o.perm.del ? "display:none" : "" %>" ></span>',
        '</div>'
    ].join('')
};